import { Body, Controller, Post } from '@nestjs/common';
import { sendEmailDto } from 'src/dto/email.dto';
import { EmailService } from './email.service';

@Controller('email')
export class EmailController {
    constructor(
        private emailService: EmailService
    ) { }
    @Post("sendEmailCode")
    async sendEmailCode(@Body() data:sendEmailDto) {       
        return this.emailService.sendEmailCode(data)
    }
}
